package com.stud.business.qb.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.stud.common.annotation.Excel;
import com.stud.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 学生作业对象 q_student_homework
 *
 * @author Stud
 * @date 2024-03-08
 */
@Schema(description = "学生作业")
@Getter
@Setter
@TableName("q_student_homework")
public class QStudentHomework extends BaseEntity{

    @Excel(name = "学生ID")
    @Schema(description = "studentId")
    private Long studentId;

    @Excel(name = "作业ID")
    @Schema(description = "homeworkId")
    private Long homeworkId;

    @Excel(name = "作业状态")
    @Schema(description = "status")
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "startTime")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "endTime")
    private LocalDateTime endTime;

    @Excel(name = "批改老师ID")
    @Schema(description = "teacherId")
    private Long teacherId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "批改开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "reviewStartTime")
    private LocalDateTime reviewStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "批改结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "reviewEndTime")
    private LocalDateTime reviewEndTime;

    @Excel(name = "完成率")
    @Schema(description = "completeRate")
    private Long completeRate;

    @Excel(name = "正确率")
    @Schema(description = "correctRate")
    private Long correctRate;

    @Excel(name = "总得分")
    @Schema(description = "score")
    private Long score;

}
